<template>
  <div id="app" >
    <Header v-if="$store.state.buycar.headershow"></Header>
      <main>
        <router-view></router-view>
      </main>
  </div>
</template>

<script>
import { mapActions } from 'vuex'

import Header from 'components/layout/Header'



export default {
  data(){
    return{

    }
  },
  components:{
    Header
  },
  created(){
    this.initCar()
  },
  methods:{
    ...mapActions([ 'initCar' ])
  }
}
</script>

<style lang="stylus" scoped>

</style>
